#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
	int arr1[2][3] = { {1,2,3},{4,5,6} };
	int arr2[2][3] = { {2,4,6},{7,8,15} };
	int c[2][3];
	int i, j;
	for (i = 0; i < 2; i++)
		for (j = 0; j < 3; j++)
		{
			c[i][j] = arr1[i][j] + arr2[i][j];
		}
	for (i = 0; i < 2; i++)
		cout << c[i][0] << " " << c[i][1] << " " << c[i][2] << endl;
	return 0;
}